package cn.stylefeng.guns.modular.pandian.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

/**
 * 抽盘明细表
 */
@TableName("pandian_choupan_detailed")
@Data
public class PandianChoupanDetailed implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 状态
     */
    @TableField("inventory")
    private String inventory;

    /**
     * 类型
     */
    @TableField("pan_type")
    private String panType;

    /**
     * 盘点单id
     */
    @TableField("disk_id")
    private Long diskId;

    /**
     * 盘点单号
     */
    @TableField("disk_number")
    private String diskNumber;

    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 商品编号
     */
    @TableField("goods_number")
    private String goodsNumber;

    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 仓库id
     */
    @TableField("warehouse_id")
    private Long warehouseId;

    /**
     * 仓库名称
     */
    @TableField("warehouse_name")
    private String warehouseName;

    /**
     * 仓库编号
     */
    @TableField("warehouse_number")
    private String warehouseNumber;

    /**
     * 库区id
     */
    @TableField("area_id")
    private Long areaId;

    /**
     * 库区名称
     */
    @TableField("area_name")
    private String areaName;

    /**
     * 库区编号
     */
    @TableField("area_number")
    private String areaNumber;

    /**
     * 库位id
     */
    @TableField("position_id")
    private Long positionId;

    /**
     * 库位编号
     */
    @TableField("position_number")
    private String positionNumber;

    /**
     * 托盘编号
     */
    @TableField("tray_number")
    private String trayNumber;

    /**
     * 存量
     */
    @TableField("num")
    private String num;

    /**
     * 实际数量
     */
    @TableField("true_num")
    private String trueNum;

    /**
     * 批次
     */
    @TableField("goodsbatchs")
    private String goodsbatchs;

    /**
     * 新批次
     */
    @TableField("newgoodsbatchs")
    private String newgoodsbatchs;

    /**
     * 交付客户id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建用户
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 创建人员
     */
    @TableField("create_username")
    private String createUsername;

    /**
     * 盘点描述
     */
    @TableField("pandian_nodes")
    private String pandianNodes;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 修改用户
     */
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    /**
     * 盘点处理人
     */
    @TableField("deal_person")
    private String dealPerson;

    /**
     * 盘点处理时间
     */
    @TableField("deal_time")
    private String dealTime;

    /**
     * 描述
     */
    @TableField("nodes")
    private String nodes;

    @Override
    public String toString() {
        return "PandianChoupanDetailed{" +
        "id=" + id +
        ", diskId=" + diskId +
        ", diskNumber=" + diskNumber +
        ", goodsId=" + goodsId +
        ", goodsNumber=" + goodsNumber +
        ", goodsName=" + goodsName +
        ", warehouseId=" + warehouseId +
        ", warehouseName=" + warehouseName +
        ", warehouseNumber=" + warehouseNumber +
        ", areaId=" + areaId +
        ", areaName=" + areaName +
        ", areaNumber=" + areaNumber +
        ", positionId=" + positionId +
        ", positionNumber=" + positionNumber +
        ", num=" + num +
        ", trueNum=" + trueNum +
        ", inventory=" + inventory +
        ", deliverId=" + deliverId +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", createUser=" + createUser +
        ", updateUser=" + updateUser +
        ", goodsbatchs=" + goodsbatchs +
        ", dealPerson=" + dealPerson +
        ", dealTime=" + dealTime +
        ", trayNumber=" + trayNumber +
        ", newgoodsbatchs=" + newgoodsbatchs +
        ", createUsername=" + createUsername +
        "}";
    }
}
